@charset "UTF-8";
// 图片旋转
%img-rotate, .img-rotate {
  figure {
	width: 100%;
	height: auto;
	overflow: hidden;
	img {
	  -webkit-transition: all 1s ease;
	  -moz-transition: all 1s ease;
	  transition: all 1s ease;
	  display: block;
	  height: 100%;
	  width: 100%;
	}
  }
  &:hover img {
	-webkit-transform: scale(1.2) translateX(5px) rotate(5deg);
	-moz-transform: scale(1.2) translateX(5px) rotate(5deg);
	-ms-transform: scale(1.2) translateX(5px) rotate(5deg);
	-o-transform: scale(1.2) translateX(5px) rotate(5deg);
	transform: scale(1.2) translateX(5px) rotate(5deg);
  }
}

// 图片曲线阴影 & 翘边阴影
%img-shadow, .img-shadow {
  figure {
	width: 100%;
	position: relative;
	background: #fff;
	@include box-shadow(0 1px 4px rgba(0, 0, 0, 0.3), 0 0 60px rgba(0, 0, 0, 0.1) inset);
	border: 5px solid #fff;
	&:before {
	  content: '';
	  position: absolute;
	  bottom: 8px;
	  left: 20px;
	  z-index: -2;
	  width: 90%;
	  height: 80%;
	  background: transparent;
	  @include box-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
	  -webkit-transform: skew(-12deg) rotate(-4deg);
	  -ms-transform: skew(-12deg) rotate(-4deg);
	  -o-transform: skew(-12deg) rotate(-4deg);
	  transform: skew(-12deg) rotate(-4deg);
	}
	&:after {
	  content: '';
	  position: absolute;
	  right: 20px;
	  bottom: 8px;
	  z-index: -1;
	  width: 90%;
	  height: 80%;
	  background: transparent;
	  @include box-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
	  -webkit-transform: skew(12deg) rotate(4deg);
	  -ms-transform: skew(12deg) rotate(4deg);
	  -o-transform: skew(12deg) rotate(4deg);
	  transform: skew(12deg) rotate(4deg);
	}
  }
}

